package lapsnake.model.slice;

import lapsnake.model.data.*;
import lapsnake.model.LapAbstractSlice;
import lapsnake.model.PyAST;
import lapsnake.py.ast.ASTHelperFactory; import java.beans.PropertyVetoException;

import org.python.antlr.ast.ExtSlice;

public class LapExtSlice extends LapAbstractSlice
{
	public final ChildList<LapAbstractSlice> dims = new ChildList<>(this, LapAbstractSlice.class, true);//TODO find out if optional
	
	public LapExtSlice(PyAST pyAST, ChildField<? super LapExtSlice> parent, ExtSlice node) throws PropertyVetoException {
		super(pyAST, parent, node);
		ASTHelperFactory.makeHelpers(pyAST, dims, node.getInternalDims());
		buildTextNodes(node);
	}
}